package com.bnlr.lrparking.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2017/12/17 0017.
 */

public class AlterPublishDetailBean {

    /**
     * errorCode : 0
     * msgcode : 1
     * msg : 成功
     * data : [{"Id":110650,"Type":20,"CityId":341700,"Title":"测试","Area":"市辖区","Address":"","AreaId":341701,"Size":13,"Price":6560,"SpaceType":13,"SpaceTypeString":"子母车位","Description":"","PriceUnit":"元","UserName":"田先生","Phone":"18236110483","Number":"","UserId":305,"PhotoUrl":"http://120.27.27.144:8001","Longitude":0,"Latitude":0,"SpaceAdvan":"","FloorNum":"","DateLine":"","IsSaleToAll":0,"PhotoList":[],"AuthPhotoList":[],"ProvinceId":340000,"ShowArea":"安徽省池州市市辖区"}]
     * recordCount : 0
     */

    private int errorCode;
    private String msgcode;
    private String msg;
    private int recordCount;
    private List<DataBean> data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * Id : 110650
         * Type : 20
         * CityId : 341700
         * Title : 测试
         * Area : 市辖区
         * Address :
         * AreaId : 341701
         * Size : 13
         * Price : 6560
         * SpaceType : 13
         * SpaceTypeString : 子母车位
         * Description :
         * PriceUnit : 元
         * UserName : 田先生
         * Phone : 18236110483
         * Number :
         * UserId : 305
         * PhotoUrl : http://120.27.27.144:8001
         * Longitude : 0
         * Latitude : 0
         * SpaceAdvan :
         * FloorNum :
         * DateLine :
         * IsSaleToAll : 0
         * PhotoList : []
         * AuthPhotoList : []
         * ProvinceId : 340000
         * ShowArea : 安徽省池州市市辖区
         */

        private int Id;
        private int Type;
        private int CityId;
        private String Title;
        private String Area;
        private String Address;
        private int AreaId;
        private int Size;
        private int Price;
        private int SpaceType;
        private String SpaceTypeString;
        private String Description;
        private String PriceUnit;
        private String UserName;
        private String Phone;
        private String Number;
        private int UserId;
        private String PhotoUrl;
        private Double Longitude;
        private Double Latitude;
        private String SpaceAdvan;
        private String FloorNum;
        private String DateLine;
        private int IsSaleToAll;
        private int ProvinceId;
        private String ShowArea;
        private int IsHaveSpace;
        private String SpaceBuildTime;
        private String ParkingName;

        public int getIsHaveSpace() {
            return IsHaveSpace;
        }

        public String getSpaceBuildTime() {
            return SpaceBuildTime;
        }

        public String getParkingName() {
            return ParkingName;
        }

        private List<PublishPhoto> PhotoList;
        private List<PublishPhoto> AuthPhotoList;

        public List<PublishPhoto> getPhotoList() {
            return PhotoList;
        }

        public List<PublishPhoto> getAuthPhotoList() {
            return AuthPhotoList;
        }

        public int getId() {
            return Id;
        }

        public void setId(int Id) {
            this.Id = Id;
        }

        public int getType() {
            return Type;
        }

        public void setType(int Type) {
            this.Type = Type;
        }

        public int getCityId() {
            return CityId;
        }

        public void setCityId(int CityId) {
            this.CityId = CityId;
        }

        public String getTitle() {
            return Title;
        }

        public void setTitle(String Title) {
            this.Title = Title;
        }

        public String getArea() {
            return Area;
        }

        public void setArea(String Area) {
            this.Area = Area;
        }

        public String getAddress() {
            return Address;
        }

        public void setAddress(String Address) {
            this.Address = Address;
        }

        public int getAreaId() {
            return AreaId;
        }

        public void setAreaId(int AreaId) {
            this.AreaId = AreaId;
        }

        public int getSize() {
            return Size;
        }

        public void setSize(int Size) {
            this.Size = Size;
        }

        public int getPrice() {
            return Price;
        }

        public void setPrice(int Price) {
            this.Price = Price;
        }

        public int getSpaceType() {
            return SpaceType;
        }

        public void setSpaceType(int SpaceType) {
            this.SpaceType = SpaceType;
        }

        public String getSpaceTypeString() {
            return SpaceTypeString;
        }

        public void setSpaceTypeString(String SpaceTypeString) {
            this.SpaceTypeString = SpaceTypeString;
        }

        public String getDescription() {
            return Description;
        }

        public void setDescription(String Description) {
            this.Description = Description;
        }

        public String getPriceUnit() {
            return PriceUnit;
        }

        public void setPriceUnit(String PriceUnit) {
            this.PriceUnit = PriceUnit;
        }

        public String getUserName() {
            return UserName;
        }

        public void setUserName(String UserName) {
            this.UserName = UserName;
        }

        public String getPhone() {
            return Phone;
        }

        public void setPhone(String Phone) {
            this.Phone = Phone;
        }

        public String getNumber() {
            return Number;
        }

        public void setNumber(String Number) {
            this.Number = Number;
        }

        public int getUserId() {
            return UserId;
        }

        public void setUserId(int UserId) {
            this.UserId = UserId;
        }

        public String getPhotoUrl() {
            return PhotoUrl;
        }

        public void setPhotoUrl(String PhotoUrl) {
            this.PhotoUrl = PhotoUrl;
        }

        public Double getLongitude() {
            return Longitude;
        }

        public void setLongitude(Double Longitude) {
            this.Longitude = Longitude;
        }

        public Double getLatitude() {
            return Latitude;
        }

        public void setLatitude(Double Latitude) {
            this.Latitude = Latitude;
        }

        public String getSpaceAdvan() {
            return SpaceAdvan;
        }

        public void setSpaceAdvan(String SpaceAdvan) {
            this.SpaceAdvan = SpaceAdvan;
        }

        public String getFloorNum() {
            return FloorNum;
        }

        public void setFloorNum(String FloorNum) {
            this.FloorNum = FloorNum;
        }

        public String getDateLine() {
            return DateLine;
        }

        public void setDateLine(String DateLine) {
            this.DateLine = DateLine;
        }

        public int getIsSaleToAll() {
            return IsSaleToAll;
        }

        public void setIsSaleToAll(int IsSaleToAll) {
            this.IsSaleToAll = IsSaleToAll;
        }

        public int getProvinceId() {
            return ProvinceId;
        }

        public void setProvinceId(int ProvinceId) {
            this.ProvinceId = ProvinceId;
        }

        public String getShowArea() {
            return ShowArea;
        }

        public void setShowArea(String ShowArea) {
            this.ShowArea = ShowArea;
        }

       public static class PublishPhoto implements Parcelable {
           private String photoUrl;

           public String getPhotoUrl() {
               return photoUrl;
           }

           @Override
           public int describeContents() {
               return 0;
           }

           @Override
           public void writeToParcel(Parcel dest, int flags) {
               dest.writeString(this.photoUrl);
           }

           public PublishPhoto() {
           }

           protected PublishPhoto(Parcel in) {
               this.photoUrl = in.readString();
           }

           public static final Creator<PublishPhoto> CREATOR = new Creator<PublishPhoto>() {
               @Override
               public PublishPhoto createFromParcel(Parcel source) {
                   return new PublishPhoto(source);
               }

               @Override
               public PublishPhoto[] newArray(int size) {
                   return new PublishPhoto[size];
               }
           };
       }

        public DataBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.Id);
            dest.writeInt(this.Type);
            dest.writeInt(this.CityId);
            dest.writeString(this.Title);
            dest.writeString(this.Area);
            dest.writeString(this.Address);
            dest.writeInt(this.AreaId);
            dest.writeInt(this.Size);
            dest.writeInt(this.Price);
            dest.writeInt(this.SpaceType);
            dest.writeString(this.SpaceTypeString);
            dest.writeString(this.Description);
            dest.writeString(this.PriceUnit);
            dest.writeString(this.UserName);
            dest.writeString(this.Phone);
            dest.writeString(this.Number);
            dest.writeInt(this.UserId);
            dest.writeString(this.PhotoUrl);
            dest.writeValue(this.Longitude);
            dest.writeValue(this.Latitude);
            dest.writeString(this.SpaceAdvan);
            dest.writeString(this.FloorNum);
            dest.writeString(this.DateLine);
            dest.writeInt(this.IsSaleToAll);
            dest.writeInt(this.ProvinceId);
            dest.writeString(this.ShowArea);
            dest.writeInt(this.IsHaveSpace);
            dest.writeString(this.SpaceBuildTime);
            dest.writeString(this.ParkingName);
            dest.writeTypedList(this.PhotoList);
            dest.writeTypedList(this.AuthPhotoList);
        }

        protected DataBean(Parcel in) {
            this.Id = in.readInt();
            this.Type = in.readInt();
            this.CityId = in.readInt();
            this.Title = in.readString();
            this.Area = in.readString();
            this.Address = in.readString();
            this.AreaId = in.readInt();
            this.Size = in.readInt();
            this.Price = in.readInt();
            this.SpaceType = in.readInt();
            this.SpaceTypeString = in.readString();
            this.Description = in.readString();
            this.PriceUnit = in.readString();
            this.UserName = in.readString();
            this.Phone = in.readString();
            this.Number = in.readString();
            this.UserId = in.readInt();
            this.PhotoUrl = in.readString();
            this.Longitude = (Double) in.readValue(Double.class.getClassLoader());
            this.Latitude = (Double) in.readValue(Double.class.getClassLoader());
            this.SpaceAdvan = in.readString();
            this.FloorNum = in.readString();
            this.DateLine = in.readString();
            this.IsSaleToAll = in.readInt();
            this.ProvinceId = in.readInt();
            this.ShowArea = in.readString();
            this.IsHaveSpace = in.readInt();
            this.SpaceBuildTime = in.readString();
            this.ParkingName = in.readString();
            this.PhotoList = in.createTypedArrayList(PublishPhoto.CREATOR);
            this.AuthPhotoList = in.createTypedArrayList(PublishPhoto.CREATOR);
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
